#ifndef DIODORSpi_H
#define DIODORSpi_H


#include <QThread>

class DiodorSpi : public QThread
{
    Q_OBJECT

private:
    int vendorID;
    int productID;
    int interface;
    bool started;
    int baudrate;
    QByteArray *dataToSend;

public:
    explicit DiodorSpi(int vendorId, int productId, int interface, QObject *parent = 0);
    ~DiodorSpi(void);
    void run();
signals:
    void dataRecive(QByteArray data);

public slots:
    void dataSend(QByteArray data);

};
#endif // DIODORSpi_H
